import { getValueInArray } from "../../core/utils/utils";

export const SkillLevelDefine = [
  { num: 0, title: '入门' },
  { num: 100, title: '精通' },
  { num: 1000, title: '入微' },
  { num: 5000, title: '出神入化' },
  { num: 10000, title: '神明' },
]

export const getSkillLevelTitle = (num) => {
  return getValueInArray(SkillLevelDefine, num).title;
}

export const getSkillLevel = (num) => {
  return getValueInArray(SkillLevelDefine, num, true);
};